package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:39
 * @Description: TODO
 */
@TableName("t_teacher_photo")
public class TeacherPhoto {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String teacherId;

    @TableField("image")
    private String teacherImageBase64;

    public void setId(Long id) {
        this.id = id;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public void setTeacherImageBase64(String teacherImageBase64) {
        this.teacherImageBase64 = teacherImageBase64;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.TeacherPhoto))
            return false;
        com.caipin.domain.table.TeacherPhoto other = (com.caipin.domain.table.TeacherPhoto)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$teacherId = getTeacherId(), other$teacherId = other.getTeacherId();
        if ((this$teacherId == null) ? (other$teacherId != null) : !this$teacherId.equals(other$teacherId))
            return false;
        Object this$teacherImageBase64 = getTeacherImageBase64(), other$teacherImageBase64 = other.getTeacherImageBase64();
        return !((this$teacherImageBase64 == null) ? (other$teacherImageBase64 != null) : !this$teacherImageBase64.equals(other$teacherImageBase64));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.TeacherPhoto;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $teacherId = getTeacherId();
        result = result * 59 + (($teacherId == null) ? 43 : $teacherId.hashCode());
        Object $teacherImageBase64 = getTeacherImageBase64();
        return result * 59 + (($teacherImageBase64 == null) ? 43 : $teacherImageBase64.hashCode());
    }

    public String toString() {
        return "TeacherPhoto(id=" + getId() + ", teacherId=" + getTeacherId() + ", teacherImageBase64=" + getTeacherImageBase64() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public String getTeacherId() {
        return this.teacherId;
    }

    public String getTeacherImageBase64() {
        return this.teacherImageBase64;
    }
}

